<html>
<head><meta charset="utf-8"><title>llvm.funcname.vfX linking · project-portable-simd · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/index.html">project-portable-simd</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html">llvm.funcname.vfX linking</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217682860"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217682860" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217682860">(Nov 23 2020 at 21:06)</a>:</h4>
<p><span class="user-mention" data-user-id="312331">@Caleb Zulawski</span> so I was poking at things the other night at removing the direct linkages to LLVM intrinsics and I'm curious if there was any motivation now for those in the crate? simd_floor at least seems to work if I define it and do the necessary twiddling.</p>



<a name="217682922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217682922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217682922">(Nov 23 2020 at 21:07)</a>:</h4>
<p>Nope, LLVM intrinsics are only really a stopgap I think</p>



<a name="217684182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217684182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217684182">(Nov 23 2020 at 21:20)</a>:</h4>
<p>OK. It looks like rustc supports simd_floor and simd_ceil already, and as far as I can tell it gens the same IR as what you specified, which is why I asked. It doesn't support simd_trunc or simd_round though.</p>



<a name="217684302"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217684302" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217684302">(Nov 23 2020 at 21:21)</a>:</h4>
<p>Oh I must've missed those, or maybe couldn't figure out the semantics</p>



<a name="217684421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217684421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217684421">(Nov 23 2020 at 21:22)</a>:</h4>
<p>They certainly feel like they have weaker type inference so that might have blocked you.</p>



<a name="217684475"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217684475" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217684475">(Nov 23 2020 at 21:23)</a>:</h4>
<p>or you might have avoided them because they don't appear to be like... properly typechecked afaict.</p>



<a name="217684505"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217684505" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217684505">(Nov 23 2020 at 21:23)</a>:</h4>
<p>Ha, maybe</p>



<a name="217684606"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/llvm.funcname.vfX%20linking/near/217684606" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/llvm.2Efuncname.2EvfX.20linking.html#217684606">(Nov 23 2020 at 21:24)</a>:</h4>
<p>...those two things might be related, come to think of it.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>